package com.mantru.iotpot.dao;

import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.os.Environment;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.text.TextUtils;

import androidx.annotation.Nullable;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * 自动录制里的料盒配置表
 * 作者： cmh
 * 日期： 2025/03/13
 */

public class t_handing_config_box2
{
    public String table_name = "t_handing_config_box2";
    public String config_id, box1_value, box2_value, box3_value, box4_value;
    public String create_sql = "create table t_handing_config_box2(config_id integer primary key, box1_value integer, box2_value integer, box3_value integer, box4_value integer)";
    public String update_sql = "update t_handing_config_box2 set box1_value=?, box2_value=?, box3_value=?, box4_value=?";
    public String list_sql = "select * from t_handing_config_box2 order by config_id";
    public String drop_sql = "drop table t_handing_config_box2";


    public ContentValues GetInsertContentValues()
    {
        ContentValues cv = new ContentValues();
        cv.put("config_id", config_id);
        cv.put("box1_value", box1_value);
        cv.put("box2_value", box2_value);
        cv.put("box3_value", box3_value);
        cv.put("box4_value", box4_value);
        return cv;
    }

    public String[] GetUpdateValues()
    {
        String[] values = new String[4];
        values[0] = box1_value;
        values[1] = box2_value;
        values[2] = box3_value;
        values[3] = box4_value;
        return values;
    }

    public String[] GetListValues()
    {
        String[] values = new String[0];
        return values;
    }

}
